package org.keyyond.ms.commonservice.dao;

import java.util.UUID;

import org.keyyond.ms.commonservice.mapper.SDBDLoginMapper;
import org.keyyond.ms.commonservice.model.SDBDLoginfo;
import org.keyyond.ms.commonservice.util.BaseDao;
import org.keyyond.ms.core.util.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SDBDLoginfoDao extends BaseDao<SDBDLoginfo>{
	
	@Autowired
	private SDBDLoginMapper loginMapper;

	public int insert(SDBDLoginfo fdfbLoginfo) {
		// TODO Auto-generated method stub
		fdfbLoginfo.setSeqno(UUID.randomUUID().toString());
		fdfbLoginfo.setCreateon(DateUtil.getTimestamp());
		fdfbLoginfo.setModifyon(DateUtil.getTimestamp());
		return loginMapper.insert(fdfbLoginfo);
	}

}
